:root {
    --charRarity5: rgba(200, 124, 36, 0.68);
    --charRarity4: rgba(148, 112, 187, 0.68);
    --itemStar5: #C87C24;
    --itemStar4: #9470BB;
    --itemStar3: #5987AD;
    --itemStar2: #5A977A;
    --itemStar1: #818486;
    --elemPyro: #FF9999;
    --elemHydro: #80C0FF;
    --elemAnemo: #80FFD7;
    --elemElectro: #FFACFF;
    --elemDendro: #99FF88;
    --elemCryo: #99FFFF;
    --elemGeo: #FFE699;
    --charCons6: #ff5722;
    --charCons5: #531ba9cf;
    --charCons4: #3955b7;
    --charCons3: #3e95b9;
    --charCons2: #339d61;
    --charCons1: #5cbac2;
    --weaponAffix5: #DEAF39;
    --weaponAffix4: #C539DE;
    --weaponAffix3: #396CDE;
    --weaponAffix2: #51B72F;
    --weaponAffix1: #A3A3A3;
    --artiMark4: #FF5722;
    --artiMark3: #FFE699;
    --artiMark2: #D699FF;
    --artiMark1: #FFFFFF;
    --ambrLight: rgb(233, 229, 220);
    --ambrDeep: rgb(74, 83, 102);
    --artiBg: rgba(46, 53, 62, .68);
    --tableBg: #2e353e;
}

#container {
    width: 960px;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    font-weight: bold;
    background-size: cover;
    background-position: center 0;
    background-repeat: no-repeat;
    font-family: 'tttgbnumber', cursive;
}

div.TopLeftPanel {
    width: 325px;
    height: 543px;
}

div.TopLeftPanel > div.UID {
    position: relative;
    top: 10px;
    font-size: 24px;
    font-weight: 700;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 15px;
    text-shadow: 0 0 3px #d3bc8e, 2px 2px 4px rgb(0 0 0 / 70%);
    color: rgb(255 189 4 / 82%);
    background-color: rgb(34 24 189 / 84%);
}

div.TopLeftPanel > div.rank {
    color: #ffffff;
    text-shadow: -2px 9px 14px rgb(0 0 0 / 68%);
    border-radius: 15px;
    position: relative;
    padding: 6px;
    top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #2532004d;
}

div.TopLeftPanel > div.rank > div {
    width: 50%;
    height: 91px;
    font-family: PanelFont, cursive;
    font-size: 50px;
    font-weight: 700;
    color: #03f7eceb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

div.TopLeftPanel > div.rank > div:nth-child(odd) {
    width: 50%;
}

div.TopLeftPanel > div.rank > div::after {
    content: "伤害评级";
    font-family: "PanelFont", cursive;
    font-size: 30px;
    font-weight: bold;
}

div.TopLeftPanel > div.rank > div.dps::after {
    content: "DPS";
}

div.TopLeftPanel > div.rank > div.time::after {
    content: "输出轴长";
}

div.TopLeftPanel > div.rank > div.total::after {
    content: "输出总伤";
}

div.TopLeftPanel > div#pie {
    background-color: rgb(62 46 46 / 68%);
    border-radius: 20px;
    position: relative;
    top: 50px;
    height: 264px;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.TopLeftPanel > div#pie::after {
    position: absolute;
    bottom: 10px;
    content: "输出比例";
    font-size: 20px;
    color: var(--ambrLight);
}

div.Avatars {
    position: relative;
    width: 575px;
    height: auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

div.Avatars > div.avatar {
    color: #ffffff;
    background-color: var(--artiBg);
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 264px;
    border-radius: 15px;
    border: none;
    position: relative;
}

div.Avatars > div.avatar > div.char {
    width: 64px;
    height: 64px;
    left: 0;
    position: absolute;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-top-left-radius: 15px
}

div.Avatars > div.avatar > div.r5 {
    background-color: var(--itemStar5);
}

div.Avatars > div.avatar > div.r4 {
    background-color: var(--itemStar4);
}

div.Avatars > div.avatar > div.r3 {
    background-color: var(--itemStar3);
}

div.Avatars > div.avatar > div.r2 {
    background-color: var(--itemStar2);
}

div.Avatars > div.avatar > div.r1 {
    background-color: var(--itemStar1);
}

div.Avatars > div.avatar > div.char-con {
    height: 32px;
    min-height: 32px;
    width: 44px;
    background: var(--ambrDeep);
    color: var(--ambrLight);
    text-shadow: 0 0 3px var(--ambrDeep);
    font-size: 22px;
    position: relative;
    left: -54px;
}

div.Avatars > div.avatar > div.char-con.c1 {
    background: var(--charCons1);
}

div.Avatars > div.avatar > div.char-con.c2 {
    background: var(--charCons2);
}

div.Avatars > div.avatar > div.char-con.c3 {
    background: var(--charCons3);
}

div.Avatars > div.avatar > div.char-con.c4 {
    background: var(--charCons4);
}

div.Avatars > div.avatar > div.char-con.c5 {
    background: var(--charCons5);
}

div.Avatars > div.avatar > div.char-con.c6 {
    background: var(--charCons6);
}

div.Avatars > div.avatar > div.char-lvl {
    height: 32px;
    min-height: 32px;
    width: 44px;
    background: var(--ambrDeep);
    color: var(--ambrLight);
    font-size: 22px;
    position: relative;
    left: -54px;
}

div.Avatars > div.avatar > div.weapon {
    width: 64px;
    height: 64px;
    position: absolute;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

div.Avatars > div.avatar > div.weapon-aff {
    height: 32px;
    min-height: 32px;
    width: 44px;
    background: var(--ambrDeep);
    color: var(--ambrLight);
    text-shadow: 0 0 3px var(--ambrDeep);
    font-size: 22px;
    position: relative;
    top: -64px;
    left: 54px;
}

div.Avatars > div.avatar > div.weapon-aff.a2 {
    background: var(--weaponAffix2);
}

div.Avatars > div.avatar > div.weapon-aff.a3 {
    background: var(--weaponAffix3);
}

div.Avatars > div.avatar > div.weapon-aff.a4 {
    background: var(--weaponAffix4);
}

div.Avatars > div.avatar > div.weapon-aff.a5 {
    background: var(--weaponAffix5);
}

div.Avatars > div.avatar > div.weapon-lvl {
    height: 32px;
    min-height: 32px;
    width: 44px;
    background: var(--ambrDeep);
    color: var(--ambrLight);
    font-size: 22px;
    position: relative;
    top: -64px;
    left: 54px;
}

div.Avatars > div.avatar > div.weapon-aff,
div.Avatars > div.avatar > div.weapon-lvl,
div.Avatars > div.avatar > div.char-con,
div.Avatars > div.avatar > div.char-lvl {
    font-family: PanelFont, cursive;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.Avatars > div.avatar > div.arti {
    width: 64px;
    height: 64px;
    min-height: 64px;
    background: var(--itemStar5);
    border-top-right-radius: 15px;
    position: relative;
    top: -128px;
    left: 108px;
    div {
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

div.Avatars > div.avatar > div.arti:not(:has(div.s2, div.s4)) {
    background-size: 45% 60%;
    background: #818486 url('') no-repeat center center;
}

div.Avatars > div.avatar > div.arti:has(div.s4)::after {
    content: "4";
    position: relative;
    top: -23px;
    left: 47px;
    color: #00ffff;
}

div.Avatars > div.avatar > div.arti > div.s2 {
    width: 64px;
    height: 64px;
    position: absolute;
    transform: scale(.7);
    transform-origin: left top;
}

div.Avatars > div.avatar > div.arti > div.s2:last-child {
    transform-origin: right bottom;
}

div.Avatars > div.avatar > div.detail {
    width: 260px;
    min-height: 200px;
    font-size: 20px;
    position: relative;
    top: -128px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
}

div.Avatars > div.avatar > div.detail > div.residue {
    width: 33.33%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

div.Avatars > div.avatar > div.detail > div.cp,
div.Avatars > div.avatar > div.detail > div.cd,
div.Avatars > div.avatar > div.detail > div.prop,
div.Avatars > div.avatar > div.detail > div.recharge,
div.Avatars > div.avatar > div.detail > div.same,
div.Avatars > div.avatar > div.detail > div.diff {
    width: 33.33%;
    height: 55px;
    font-family: PanelFont, cursive;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 25px;
    align-items: center;
    backdrop-filter: blur(5px);
}

div.Avatars > div.avatar > div.detail > div.cp::after,
div.Avatars > div.avatar > div.detail > div.cd::after,
div.Avatars > div.avatar > div.detail > div.prop > div.name,
div.Avatars > div.avatar > div.detail > div.recharge::after,
div.Avatars > div.avatar > div.detail > div.same::after,
div.Avatars > div.avatar > div.detail > div.diff::after {
    font-family: "PanelFont", cursive;
    font-size: 15px;
    color: var(--ambrLight);
}

div.Avatars > div.avatar > div.detail > div.cp::after {
    content: "暴击";
}

div.Avatars > div.avatar > div.detail > div.cd::after {
    content: "暴伤";
}

div.Avatars > div.avatar > div.detail > div.same::after {
    content: "同色球";
}

div.Avatars > div.avatar > div.detail > div.diff::after {
    content: "异色球";
}

div.Avatars > div.avatar > div.detail > div.talent {
    width: 100%;
    min-height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.talent-icon {
    width: 55px;
    height: 55px;
    padding: 5px;
    display: table;
    border-radius: 50%;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 90;
}
.talent-icon img,
.talent-icon .talent-icon-img {
    width: 55%;
    height: 55%;
    margin-top: 1px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.talent-icon strong {
    background: #fff;
    width: 23px;
    height: 23px;
    line-height: 23px;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    margin-left: -12px;
    color: #000;
    box-shadow: 0 0 5px 0 #000;
}

div.Avatars > div.avatar > div.detail > div.talent > div {
    margin: auto;
    display: flex;
    align-items: center;
    flex-direction: row;
    background-size: contain;
    background-repeat: no-repeat;
    width: 85px;
    height: 70px;
    justify-content: center;
}

div.Avatars > div.avatar > div.detail > div.talent > div > strong.extra {
    color: #000000;
    background-color: #45deff;
}

div.Actions, ul.Damages, ul.Buffs {
    width: 920px;
    border-radius: 15px;
    margin-top: 15px;
    background-color: #332e3ed6;
    box-shadow: 0 15px 15px rgb(0 0 0 / 40%);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    list-style-type: none;
    padding-inline-start: initial;
}

div.Actions > div.title,
ul.Damages > li.title,
ul.Buffs > li.title {
    height: 50px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

div.Actions > div.title::after,
ul.Damages > li.title::after,
ul.Buffs > li.title::after {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.68;
    color: var(--ambrLight);
    padding-left: 20px;
}

div.Actions > div.title::before {
    content: "操作手法";
}

div.Actions > div.title::after {
    content: "默认手法可能并非最优，如需自定义操作手法请使用微信小程序";
}

div.Actions > div.act {
    max-width: 98%;
    padding: 0 1% 1%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

div.Actions > div.act > div {
    min-width: 30px;
    height: 30px;
    margin: 0.4em;
    padding: 0 0.3em;
    color: var(--ambrDeep);
    background-color: rgb(164 241 137);
    font-size: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

ul.Damages > li,
ul.Buffs > li {
    color: rgb(214 113 211);
    height: auto;
    min-height: 40px;
    padding-left: 25px;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-bottom: 2px solid rgba(255 255 255 / 20%);
}

ul.Damages > li:last-child,
ul.Buffs > li:last-child {
    border-bottom: none;
}

ul.Damages > li > div,
ul.Buffs > li > div {
    height: auto;
    min-height: 25px;
    padding: 0.4em;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

ul.Damages > li:nth-child(2),
ul.Damages > li > div:nth-child(1),
ul.Damages > li > div:nth-child(2),
ul.Buffs > li > div:nth-child(1),
ul.Buffs > li > div:nth-child(2) {
    color: #ffffff;
}

ul.Damages > li.title::before {
    content: "伤害过程";
}

ul.Damages > li.title::after {
    content: "伤害以 90 级怪物为基准，最终输出总伤和 DPS 为 1.25 倍期望伤害（实战对群）";
}

ul.Damages > li > div:not(:last-child),
ul.Buffs > li > div:not(:last-child) {
    border-right: 2px solid rgba(255 255 255 / 20%);
}

ul.Damages > li:not(.title) > div:first-child,
ul.Buffs > li:not(.title) > div:first-child {
    max-width: 7%;
    justify-content: flex-end;
}

ul.Damages > li.head > div:first-child::after {
    content: "时间";
}

ul.Damages > li:not(.title) > div:nth-child(2),
ul.Buffs > li:not(.title) > div:nth-child(2) {
    width: auto;
    min-width: 35%;
    max-width: 40%;
    justify-content: flex-end;
    text-align: right;
    padding-right: 20px;
}

ul.Damages > li.head > div:nth-child(2)::after {
    content: "动作";
}

ul.Damages > li.head > div:nth-child(3)::after {
    content: "暴击伤害";
}

ul.Damages > li.head > div:nth-child(4)::after {
    content: "未暴击伤害";
}

ul.Damages > li.head > div:nth-child(5)::after {
    content: "期望伤害";
}

ul.Buffs > li.title::before {
    content: "Buff 情况";
}

ul.Buffs > li.title::after {
    content: "部分 Buff 描述可能异常但通常影响较小，若伤害偏差超过 10% 可认为计算错误";
}

ul.Buffs > li:not(.title) > div:nth-child(2) {
    min-width: 25%;
    max-width: 30%;
}